package com.xmb.common.dao;

import com.xmb.common.entity.XmbUserBonusBlotter;
import com.xmb.common.entity.reward.ActivityRanking;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface XmbUserBonusBlotterMapper {
    int insert(XmbUserBonusBlotter record);

    int insertSelective(XmbUserBonusBlotter record);

    XmbUserBonusBlotter selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(XmbUserBonusBlotter record);

    int updateByPrimaryKeyWithBLOBs(XmbUserBonusBlotter record);

    int updateByPrimaryKey(XmbUserBonusBlotter record);

    BigDecimal getTotalBonus(Long userId);

    List<XmbUserBonusBlotter> getBonusList(XmbUserBonusBlotter bonusBlotter);

    List<ActivityRanking> getBonusRanking(@Param("typeId") Long typeId);

    ActivityRanking getCurrentUserActivityRewardRanking(XmbUserBonusBlotter record);
}